home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Big Mouth 10
/
Big_Mouth_The_10_1996_-_Side_B.d64
/
robospy
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
55 lines
5 rem ** robospy **
10 poke 53280,5:poke 53281,11:poke 646,15
15 let sp=0.4
20 let h$="sonic rulz!"
25 let h=100
30 let k=0:let s=0:let l=1
40 printchr$(147)
50 print"";tab(11);" *** robospy *** "
55 print"instructions : (l) for left"
56 printtab(15)"(r) for right"
60 print"";tab(10);"press space to begin"
70 get c$
80 if c$<>chr$(32) then goto 70
90 print chr$(147):print:print
100 if k=5 then let l=l+1:let k=0
110 let m$=""
120 let c$=""
130 for t=1 to l
140 let n=rnd(1)
150 if n>0.5 then print"left":let m$=m$+"l"
160 if n<0.5 then print"right":let m$=m$+"r"
170 next t
180 let k=k+1
190 for d=1 to 200*l*sp
200 get c$
210 next d
220 print chr$(147):print:print
230 let e=0
240 print"what are the directions"
250 for t=1 to l
260 print"?";
270 get c$
280 if c$<>"r"and c$<>"l"then goto 270
290 print c$
300 if c$<>mid$(m$,t,1) then let e=1
310 next t
320 if e=0 then let s=s+l
340 if e=1 then print"you lost him!some spy!"
350 print"score = ";s
360 print"high score =";h;"by ";h$
365 if e=1 and s>hthen let h=s:gosub 410
370 if e=1 then fort=1 to 1000:next:goto 500
380 for d=1 to 500*sp
390 next d
400 goto 90
410 print"that is the high score!"
420 print"please type your name"
430 input h$:return
499 :
500 rem ** another one in the house **
505 print"do you want to play another??? ";
510 get a$:if a$="y" then 30
520 if a$<>"n" then 510
530 print a$:fort=1 to 1000:next:load"the main menu/bm",8,1